package com.hmall.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmall.order.mapper.OrderDetailMapper;
import com.hmall.order.mapper.OrderLogisticsMapper;
import com.hmall.order.pojo.OrderDetail;
import com.hmall.order.pojo.OrderLogistics;
import com.hmall.order.service.IOrderDetail;
import com.hmall.order.service.IOrderLogistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderLogisticsmpl extends ServiceImpl<OrderLogisticsMapper, OrderLogistics> implements IOrderLogistics {
    @Autowired
    public OrderLogisticsMapper orderLogisticsMapper;


    @Override
    public String InsertOrderLogistics(OrderLogistics orderLogistics) {
        int insert = orderLogisticsMapper.insert(orderLogistics);
        return insert==0?"失败":"成功";
    }
}
